package com.example.mallauthserver.feign;

import com.common.utils.R;
import com.example.mallauthserver.controller.vo.LoginVO;
import com.example.mallauthserver.controller.vo.UserRegisterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author guanglin.ma
 * @date 2024-01-04 17:35
 */
@FeignClient("mall-member")
@Component
public interface MemberFeginService {


    @PostMapping("/mallmember/member/register")
    public R register(@RequestBody UserRegisterVO userRegisterVO);

    @PostMapping("/mallmember/member/login")
    public R login(@RequestBody LoginVO loginVO);
}
